package com.molichuxing.services.infrastructure.service.impl;

import com.molichuxing.services.infrastructure.bean.GztDrivingLicenseRequestLogBean;
import com.molichuxing.services.infrastructure.bean.SmsLogBean;
import com.molichuxing.services.infrastructure.dao.GztDrivingLicenseRequestLogMapper;
import com.molichuxing.services.infrastructure.dao.SmsLogMapper;
import com.molichuxing.services.infrastructure.dto.request.create.GztDrivingLicenseRequestLogCreateDto;
import com.molichuxing.services.infrastructure.dto.request.create.SmsLogCreateDto;
import com.molichuxing.services.infrastructure.service.GztDrivingLicenseRequestLogService;
import com.molichuxing.services.infrastructure.service.SmsLogService;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author liuruifeng
 * 短信日志服务
 * 2019-10-25
 */
@Service("smsLogService")
public class SmsLogServiceImpl implements SmsLogService {


	@Autowired
	private SmsLogMapper smsLogMapper;

	@Override
	public int create(SmsLogCreateDto dto) {
		SmsLogBean bean = new SmsLogBean();
		BeanUtils.copyProperties(dto, bean);
		return smsLogMapper.create(bean);
	}
}
